<template>
  <div class="content-card">
    <div class="label-wrapper">
      <div class="label">
        <img src="@/assets/img/assemble/3-1.jpg" alt="3-1" />
        <div>{{ "基础库" }}</div>
      </div>
      <div class="label">
        <img src="@/assets/img/assemble/3-2.jpg" alt="3-1" />
        <div>{{ "标准库" }}</div>
      </div>
      <div class="label">
        <img src="@/assets/img/assemble/3-3.jpg" alt="3-1" />
        <div>{{ "贴源库" }}</div>
      </div>
    </div>
    <div class="fake-chart">
      <span>{{ cardData.base }}</span>
      <span>{{ cardData.std }}</span>
      <span>{{ cardData.stc }}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "a3-box",
  props: {
    cardData: {
      type: Object,
      // default: () => ({ d1: 220, d2: 223, d3: 2334 }),
    },
  },
};
</script>

<style lang="less" scoped>
.content-card {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 180px;
  .label-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    .label {
      display: flex;
      img {
        width: 20px;
        height: 20px;
        margin: 0 10px;
      }
      :nth-child(2) {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100px;
        font-size: 14px;
        border-bottom: 1px dashed #eee;
      }
    }
  }
  .fake-chart {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: url(../../../assets/img/assemble/3-bg.jpg) no-repeat;
    background-size: 100% 100%;
    font-size: 18px;
    font-weight: 500;
    span {
      &::after {
        content: "亿";
        font-size: 12px;
        color: #333;
        margin: 0 2px;
      }
    }
    :nth-child(1) {
      color: #363eff;
    }
    :nth-child(2) {
      color: #3695ff;
    }
    :nth-child(3) {
      color: #00d3ff;
    }
  }
}
</style>
